<template>
    <div>
      <h1>这是一个公告页面</h1>
      <h2>
        新闻：{{message}}
      </h2>

      <router-link to="/note/avatarview">个人信息</router-link>
      &nbsp;&nbsp;&nbsp;&nbsp; | &nbsp;&nbsp;&nbsp;&nbsp;
      <router-link to="/note/familyview">家庭信息</router-link>
      <hr>
      <router-view></router-view>
    </div>
</template>

<script>
export default {
  name: "Note",
  data() {
    return {
      //取出路径中的message参数
      message: this.$route.query.message
    }
  },
  methods: {}
}
</script>

<style scoped>

</style>